<div >
  <h2>提醒</h2>
  <button type="button" class="clear"
          (click)="messageService.clear()">清空消息
  </button>
  <div *ngFor='let message of messageService.messages'> {{ message }}</div>

</div>
